package com.micro.ai.models.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.micro.ai.models.entity.DatasetRecord;

import java.util.List;

/**
 * 数据集记录服务接口
 * 
 * @author micro-ai
 * @since 0.0.1
 */
public interface DatasetRecordService extends IService<DatasetRecord> {

    Page<DatasetRecord> pageQuery(int pageNum, int pageSize, String tenantId, String datasetId);
    
    DatasetRecord create(DatasetRecord record);
    
    List<DatasetRecord> batchCreate(List<DatasetRecord> records, String datasetId);
    
    DatasetRecord update(String id, DatasetRecord record);
    
    void delete(String id);
    
    /**
     * 根据数据集ID查询所有记录
     */
    List<DatasetRecord> listByDatasetId(String datasetId);
}

